//
//  LYTabBarController.h
//  LYDevelopKit
//
//  Created by 李阳 on 2018/5/25.
//

#import <UIKit/UIKit.h>

@interface LYTabBarItem : NSObject

/**
 嵌入的导航控制器类名
 
 @description default is `LYNavigationController`
 @warning 必须为`UINavigationController`的子类 或者 nil
 */
@property (nonatomic, assign) Class navClsEmbedIn;

/// @warning 必须为`UIViewController`的子类
@property (nonatomic, assign) Class vcCls;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, strong) UIImage *image;

@property (nonatomic, strong) UIImage *selectedImage;

@end


@interface LYTabBarController : UITabBarController

@property (nonatomic, strong) NSArray<LYTabBarItem *>*itemsEmbedIn;

@end


@interface UIViewController (LYTabBarController)

/// 被标签控制器再次被选中，子类可重写
- (void)tabBarItemDidSelectAgain;

/// 被标签控制器被选中，子类可重写
- (void)tabBarItemDidSelect;

@end
